package com.pcjavanet.collect.mes.to;

/**
 * As bean for map Pareto data
 * @author jack
 *
 */
public class ParetoData {
	public static final int PRE_HOLD_STATUS = 1;

	/** map data sequence */
	private int datekey ;
	
	/** defect code qty */
	private int defectqty ; 
	/** map monitor key */
	private int monitorkey ; 
	/** scan board's label */
	private String serialNumber;
	/** input SFDC defect code */
	private String defectcode ; 
	/** the defect code descritpion  */
	private String description ; 
	/** get from activity a_DateTime */
	private int aDateTime;
	/** the record create time,it will create by database  */
	private int createDate;
	/** when load ,a_dateTime will fill this field and show it In Ext */
	private String dispADateTime ;
	/** for count(defectcode) */
	private int countnumber  ; 
	/** for display  */
	private String percent ;
	/** for display  */
	private String cumulative ;
	/** for sql */
	private int aactive;
	/** for sql */
	private int alot ;
	/** for sql */
	private String serialKey ;
	/** for sql */
	private String partKey ;
	/** for sql */
	private String locationKey ;
	/** ocap */
	private String ocap ;
	
	private String exceptionDesc ;
	
	private int aDateTimeGroupSeq = 0 ;
	
	private boolean hasDealDateTimeGroup = false ; 
	/** record  pareto data status, 0:common data, 1: previous period's pareto data */
	private int dataStatus = 0 ; 
	
	private long createTime = 0 ;
	
	private String createTimeStr ; 
	public String getCreateTimeStr() {
		return createTimeStr;
	}

	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public int getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(int dataStatus) {
		this.dataStatus = dataStatus;
	}

	public boolean isHasaDateTimeGroup() {
		return hasDealDateTimeGroup;
	}

	public void setHasaDateTimeGroup(boolean hasaDateTimeGroupSeq) {
		this.hasDealDateTimeGroup = hasaDateTimeGroupSeq;
	}

	public int getDefectqty() {
		return defectqty;
	}

	public void setDefectqty(int defectqty) {
		this.defectqty = defectqty;
	}

	public int getaDateTimeGroupSeq() {
		return aDateTimeGroupSeq;
	}

	public void setaDateTimeGroupSeq(int aDateTimeGroupSeq) {
		this.aDateTimeGroupSeq = aDateTimeGroupSeq;
	}

	public String getExceptionDesc() {
		return exceptionDesc;
	}

	public void setExceptionDesc(String exceptionDesc) {
		this.exceptionDesc = exceptionDesc;
	}

	public String getOcap() {
		return ocap;
	}

	public void setOcap(String ocap) {
		this.ocap = ocap;
	}

	public int getAactive() {
		return aactive;
	}

	public String getSerialKey() {
		return serialKey;
	}

	public void setSerialKey(String serialKey) {
		this.serialKey = serialKey;
	}

	public String getPartKey() {
		return partKey;
	}

	public void setPartKey(String partKey) {
		this.partKey = partKey;
	}

	public String getLocationKey() {
		return locationKey;
	}

	public void setLocationKey(String locationKey) {
		this.locationKey = locationKey;
	}

	public void setAactive(int aactive) {
		this.aactive = aactive;
	}

	public int getAlot() {
		return alot;
	}

	public void setAlot(int alot) {
		this.alot = alot;
	}

	public String getCumulative() {
		return cumulative;
	}

	public void setCumulative(String cumulative) {
		this.cumulative = cumulative;
	}

	public String getPercent() {
		return percent;
	}

	public void setPercent(String percent) {
		this.percent = percent;
	}

	public int getCountnumber() {
		return countnumber;
	}

	public void setCountnumber(int countnumber) {
		this.countnumber = countnumber;
	}

	public int getDatekey() {
		return datekey;
	}
	
	public void setDatekey(int datekey) {
		this.datekey = datekey;
	}
	
	public int getMonitorkey() {
		return monitorkey;
	}
	
	public void setMonitorkey(int monitorkey) {
		this.monitorkey = monitorkey;
	}
	
	public String getSerialNumber() {
		return serialNumber;
	}
	
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	
	public String getDefectcode() {
		return defectcode;
	}
	
	public void setDefectcode(String defectcode) {
		this.defectcode = defectcode;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public int getaDateTime() {
		return aDateTime;
	}
	
	public void setaDateTime(int aDateTime) {
		this.aDateTime = aDateTime;
	}
	
	public int getCreateDate() {
		return createDate;
	}
	
	public void setCreateDate(int createDate) {
		this.createDate = createDate;
	}
	
	public String getDispADateTime() {
		return dispADateTime;
	}
	
	public void setDispADateTime(String dispADateTime) {
		this.dispADateTime = dispADateTime;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ParetoData [datekey=");
		builder.append(datekey);
		builder.append(", defectqty=");
		builder.append(defectqty);
		builder.append(", monitorkey=");
		builder.append(monitorkey);
		builder.append(", serialNumber=");
		builder.append(serialNumber);
		builder.append(", defectcode=");
		builder.append(defectcode);
		builder.append(", description=");
		builder.append(description);
		builder.append(", aDateTime=");
		builder.append(aDateTime);
		builder.append(", createDate=");
		builder.append(createDate);
		builder.append(", dispADateTime=");
		builder.append(dispADateTime);
		builder.append(", countnumber=");
		builder.append(countnumber);
		builder.append(", percent=");
		builder.append(percent);
		builder.append(", cumulative=");
		builder.append(cumulative);
		builder.append(", aactive=");
		builder.append(aactive);
		builder.append(", alot=");
		builder.append(alot);
		builder.append(", serialKey=");
		builder.append(serialKey);
		builder.append(", partKey=");
		builder.append(partKey);
		builder.append(", locationKey=");
		builder.append(locationKey);
		builder.append(", ocap=");
		builder.append(ocap);
		builder.append(", exceptionDesc=");
		builder.append(exceptionDesc);
		builder.append(", aDateTimeGroupSeq=");
		builder.append(aDateTimeGroupSeq);
		builder.append(", hasDealDateTimeGroup=");
		builder.append(hasDealDateTimeGroup);
		builder.append(", dataStatus=");
		builder.append(dataStatus);
		builder.append(", createTime=");
		builder.append(createTime);
		builder.append(", createTimeStr=");
		builder.append(createTimeStr);
		builder.append("]");
		return builder.toString();
	}

  
	
 
}
